package com.example.springbook.Service;

import com.example.springbook.Model.UserInfo;
import com.example.springbook.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;
    public UserInfo getUserInfoByName(String userName){
        return userInfoMapper.getUserInfoByName(userName);
    }
}
